package pers.hubb.controller;

import org.springframework.web.bind.annotation.GetMapping;
import pers.hubb.req.user.LoginReq;
import pers.hubb.rsp.Result;

import javax.servlet.http.HttpServletResponse;

/**
 * @author hubb
 * @Description
 * @Date 2018/4/2 23:54
 */
public interface UserController {
	/**
	 * 登录
	 *
	 * @param loginReq 登录请求参数
	 * @param httpRsp  HTTP响应
	 * @return 登录是否成功
	 */
	@GetMapping("/login")
	Result login(LoginReq loginReq, HttpServletResponse httpRsp);
}
